file_path = '/home/tangweiyou/project_rep/data/Graph500.ungraph'  

line_count = 0
with open(file_path, 'r') as file:
    for line in file:
        line_count += 1

print(f"文件共有 {line_count} 行")